package com.dalong.springboot.dao;

import com.dalong.springboot.bean.DbClass;
import com.dalong.springboot.bean.DbClassExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DbClassMapper {
    long countByExample(DbClassExample example);

    int deleteByExample(DbClassExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(DbClass record);

    int insertSelective(DbClass record);


    List<DbClass> selectByExample(DbClassExample example);

    DbClass selectByPrimaryKey(Integer id);

    DbClass selectByUserKeyClass(Integer id);

    int updateByExampleSelective(@Param("record") DbClass record, @Param("example") DbClassExample example);

    int updateByExample(@Param("record") DbClass record, @Param("example") DbClassExample example);

    int updateByPrimaryKeySelective(DbClass record);

    int updateByPrimaryKey(DbClass record);
}